﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTO;
using DAO;

namespace BUS
{
    public class HoaDonBUS
    {
        HoaDonDAO cls = new HoaDonDAO();
        //Load dữ liệu
        public DataTable Load_HoaDon()
        {
            return cls.Load_HoaDon();
        }
        //insert du lieu
        public void IsUp_HoaDon(HoaDonDTO p, Boolean flag)
        {
            cls.IsUp_HoaDon(p, flag);
        }
        //Del du lieu
        public void Del_HoaDon(HoaDonDTO p)
        {
            cls.Del_HoaDon(p);

        }
        //lay nhan vien
        public DataTable NV()
        {
            return cls.NV();
        }
        //lay san pham
        public DataTable SP()
        {
            return cls.SP();
        }
        //lay Khach hang
        public DataTable KH()
        {
            return cls.KH();
        }
        //tim kiem
        public DataTable TimHD(HoaDonDTO p, Boolean flag)
        {
            return cls.TimHD(p, flag );
        }
    }
}
